﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using DIST.LR.ZHJG.Pgybc.WCF.EntityClass;
using DIST.LR.ZHJG.Pgybc.WCF.Manager;

namespace DIST.LR.ZHJG.Pgybc.WCF
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码、svc 和配置文件中的类名“EntityDataManageService”。
    public class EntityDataManageService : IEntityDataManageService
    {
        private TKPITYPEManager _kpitypeManager;
        private EntitiesManager<TKPI> _kpiManager;
        private EntitiesManager<TKPIORIGIN> _kpioriginManager;

        public EntityDataManageService()
        {
            _kpitypeManager = new TKPITYPEManager();
            _kpiManager = new EntitiesManager<TKPI>();
            _kpioriginManager=new EntitiesManager<TKPIORIGIN>();
        }

        public void AddTkpiType(IList<TKPITYPE> infos)
        {
            _kpitypeManager.Add(infos);
        }

        public void DeleteTkpiType(IList<TKPITYPE> infos)
        {
            _kpitypeManager.Delete(infos);
        }

        public void AddTkpi(IList<TKPI> infos)
        {
            _kpiManager.Add(infos);
        }

        public void AddTkpiOrigin(IList<TKPIORIGIN> infos)
        {
            _kpioriginManager.Add(infos);
        }
    }
}
